# $OpenBSD: Makefile,v 1.3 2015/04/05 13:31:14 sthen Exp $

COMMENT=	patched fonts with symbols for powerline/airline

V=		0.20140429
DISTNAME=	powerline-fonts-$V
REVISION=	0

CATEGORIES=	fonts

HOMEPAGE=	https://powerline.readthedocs.org/en/latest/

# see wrksrc/README.rst - SIL OFL, Apache 2.0, Ubuntu/DejaVu Font Licenses
PERMIT_PACKAGE_CDROM=	Yes

GH_ACCOUNT=	Lokaltog
GH_PROJECT=	powerline-fonts

NO_BUILD=	Yes
NO_TEST=	Yes

FONTS_DIR=	${PREFIX}/share/fonts/powerline

do-install:
	${INSTALL_DATA_DIR} ${FONTS_DIR} ${DOCS_DIR}
	cd ${WRKDIR}/fonts-99be8480bb39f2b9daa52f03a22941a45cd1b8cf; pax -rw * ${FONTS_DIR}
	chown -R ${SHAREOWN}:${SHAREGRP} ${FONTS_DIR}
	mv ${FONTS_DIR}/Terminus/PCF/* ${FONTS_DIR}/Terminus
	rm -rf ${FONTS_DIR}/Terminus/{BDF,PSF}
	rmdir ${FONTS_DIR}/Terminus/PCF
	rm -f ${FONTS_DIR}/*/fonts.dir ${FONTS_DIR}/*/fonts.scale

.include <bsd.port.mk>
